package com.mk.sso.sdk.conf;

public class SsoConf {

    // 存在Cookie中用户信息的键
    public static final String SSO_SESSIONID = "CASTGC";

    // 存在session中用户信息的键
    public static final String CURRENT_USER = "currentUser";

    // 服务地址参数
    public static final String WEBAPP = "webapp";

    // web客户端
    public static final String WEB_CLIENT = "web";

    // app客户端
    public static final String APP_CLIENT = "app";

    // 用户认证失败提示信息
    public static final String AUTH_FAILE_WARN = "用户名或密码错误";

    // app客户端退出接口地址
    public static final String APP_CLIENT_LOGOUT_URL = "/oauth/logout";

    // 存储用户前缀
    public static final String STORAGE_USER_PREFIX = "EASY_SSO_";

    // web客户端退出接口地址
    public static final String WEB_CLIENT_LOGOUT_URL = "/sso/logout";

    // token认证请求头
    public static final String TOKEN_AUTH_HEADER = "accessToken";

    // refreshToken前缀
    public static final String REFRESH_TOKEN_PREFIX = "refreshToken_";

    // refreshToken有效期默认15天
    public static final Integer REFRESH_TOKEN_MAXAGE = 15 * 24 * 60 * 60;

}
